<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
	xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
	<persistence-unit name="MySqlDS"
		transaction-type="JTA">
		<jta-data-source>java:jboss/datasources/MySqlDS</jta-data-source>
		<mapping-file>META-INF/orm.xml</mapping-file>
		<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
		<properties>
			<property name="hibernate.cache.use_second_level_cache" value="true" />
			<property name="hibernate.show_sql" value="false" />
			<property name="hibernate.cache.use_query_cache" value="true"/>
			<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>
			<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
<!-- 			<property name="hibernate.cache.provider_class" value="org.hibernate.cache.SingletonEhCacheRegionFactory"/>  -->
		</properties>
	</persistence-unit>
	
 	<!-- <persistence-unit name="MySqlDS"
		transaction-type="RESOURCE_LOCAL">
		<non-jta-data-source>java:jboss/datasources/MySqlDS</non-jta-data-source>
		<mapping-file>META-INF/orm.xml</mapping-file>
		<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
		<properties>
			<property name="hibernate.cache.use_second_level_cache" value="true" />
			<property name="hibernate.cache.use_query_cache" value="true"/>
			<property name="hibernate.show_sql" value="false" />
			<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>
			<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
			<property name="hibernate.cache.provider_class" value="org.hibernate.cache.SingletonEhCacheProvider"/>  
		</properties>
	</persistence-unit> -->

</persistence>
